home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 418 < prev    next >
Encoding:
Text File  |  1996-08-05  |  832 b   |  27 lines

  1. Newsgroups: comp.lang.c
  2. Path: freenet.toronto.on.ca!bh332
  3. From: bh332@freenet.toronto.on.ca (Karim Ladha)
  4. Subject: [Q]Casting from struct->NULL.
  5. Message-ID: <DKnDws.FG3.0.sheppard@torfree.net>
  6. Sender: bh332@torfree.net (Karim Ladha)
  7. Reply-To: bh332@freenet.toronto.on.ca (Karim Ladha)
  8. Organization: Toronto Free-Net Inc., Toronto, Ontario, Canada
  9. Date: Thu, 4 Jan 1996 08:22:04 GMT
  10.  
  11.  
  12.  
  13. Re: Casting.
  14.  
  15. How is it possible to cast from a structure to NULL or something
  16. equivalent? Currently, I have a function which either returns a
  17. structure of type X; pointer, if success or 0L if fail. However,
  18. trying to return 0L produces, "... Cannot cast from tagStruct
  19. to long..." If you know of a solution, post. Greatly appreciated...
  20.  
  21. Thank You,
  22.   Karim A.Ladha - BH332@TorFree.Net
  23.  
  24. PS: Using BC++ v4.0 for Windows(tm) - DOS Application.
  25. -- 
  26.  
  27.